import 'package:flutter/material.dart';
import 'dart:ui';

import 'package:sexy_tea/common/colors.dart';
class HomeTopBanner extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final _statusHeight = MediaQueryData.fromWindow(window).padding.top;
    return Container(
      // padding: EdgeInsets.only(top: _statusHeight, left: 10.0, right: 10.0),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Image.asset('assets/images/home/home-red.gif', width: 31.0, height: 40.0,),
          Expanded(
            flex: 1,
            child: Container(
              margin: EdgeInsets.symmetric(horizontal: 10.0),
              padding: EdgeInsets.symmetric(horizontal: 8.0),
              height: 30.0,
              decoration: BoxDecoration(
                borderRadius: BorderRadius.circular(15.0),
                color: Colors.white,
              ),
              child: Row(
                children: [
                  Image.asset('assets/images/home/home_search_icon.png', width: 13.67, height: 13.67,),
                  Padding(
                    padding: EdgeInsets.only(left: 8.0),
                    child: Text(
                        '复制商品链接或标题 领优惠券和返现',
                      style: TextStyle(
                        fontSize: 13.0,
                        color: TColors.text_gray
                      ),
                    ),
                  )
                ],
              ),
            ),
          ),
          Image.asset('assets/images/home/home-message.gif', width: 30.0, height: 30.67,)
        ],
      ),
    );
  }
}
